<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>    
<%session.setAttribute("flag","a"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" media="screen" href="/MemberTest/css/member_main.css"/>
<script type="text/javascript" src="/MemberTest/js/member_jion.js"></script>
<script type="text/javascript"  src="/MemberTest/js/jquery-1.7.2.min.js"></script>
</head>
<body>
<form action="member_modify.do" name="form1" method="post" onsubmit="return member_join()" enctype="multipart/form-data">
<input type="hidden" name="member_id" value="${login_info.member_id }">
<input type="hidden" name="name" value="${login_info.name }">
<input type="hidden" name="registration_number1" value="${login_info.registration_number1 }">
<input type="hidden" name="registration_number2" value="${login_info.registration_number2 }">
<input type="hidden" name="gender" value="${login_info.gender }">
<input type="hidden" name="self_introduction" value="${login_info.self_introduction }">
<input type="hidden" name="admin_flag" value="${admin_flag }">
<input type="hidden" name="picture_name" value="${login_info.picture_name }">
<center>
	<table class="modify">
		<tr>
			<td colspan="5" align="right">
				<a href="index.html">메인 페이지로 이동</a>
				<a href="idcheck.do" class="common">아이디</a>/
				<a href="serachPass.do" class="common">비밀번호 찾기</a>
			</td>
		</tr>
		<tr>
			<th align="left" nowrap>이름</th>
			<td align="left" nowrap width="100px"><c:out value="${login_info.name }"/></td>
			<th align="left" nowrap width="20%"><font>주민등록번호</font></th>
			<td align="left" nowrap>&nbsp;
			<c:out value="${login_info.registration_number1 }">${login_info.registration_number1 }</c:out>
			-<c:out value="${login_info.registration_number2 }">${login_info.registration_number1 }</c:out>
			</td>
		</tr>
		<tr>
			<th align="left" nowrap>아이디</th>
			<td  colspan="3" align="left" nowrap>
			<c:out value="${login_info.member_id }">&nbsp;&nbsp;${login_info.member_id }</c:out>
			</td >
		</tr>
		<tr>
			<th align="left" nowrap>비빌번호</th>
			<td colspan="4"  align="left" nowrap><input id="mem_pwd" name="memScrtNo" type="password" maxLength="15" style="width: 155px;" onblur="trim(this.value)">
			 <span class="t_small">띄어쓰기	없는 영문 대소문자, 숫자 포함 6자 ~ 15자 사용가능 </span></td>
		</tr>
		<tr>
			<th align="left" nowrap>비밀번호확인</th>
			<td align="left" colspan="3" nowrap><input id="mem_re_pwd" name="confirm_password" type="password" maxLength="15"  onblur="javascript:if(document.form1.memScrtNo.value != '' && this.value == ''){document.getElementById('layer').innerHTML ='<font color=red >비밀번호를 한번 더 입력 하십시오.</font>';  }	
			else if(document.form1.memScrtNo.value != this.value) {document.getElementById('layer').innerHTML ='<font color=red >입력하신 비밀번호가 일치하지 않습니다.</font>'; document.form1.mem_re_pwd.value='';}
			else {document.getElementById('layer').innerHTML ='<font color=red >비밀번호가 일치합니다.</font>'; }
			"style="width: 155px;"> 
				<span class="t_small" id="layer">비밀번호를 한번 더 입력해 주세요</span>
			</td>
		</tr>
		<tr>
			<th align="left" nowrap>이메일주소</th>
			<td colspan="3" align="left" nowrap><input type="text" name="email" value="${login_info.email }">&nbsp;@&nbsp;<input type="text" name="email_type" value="${login_info.email_type }">
				<select name="email_chk" onchange="emailchked();">
					 <option value='01'>직접입력</option>
						<option value='02'>naver.com</option>
						<option value='03'>hanmail.net</option>
						<option value='04'>hotmail.com</option>
						<option value='05'>nate.com</option>
						<option value='06'>yahoo.co.kr</option>
						<option value='07'>empas.com</option>
						<option value='08'>dreamwiz.com</option>
						<option value='09'>freechal.com</option>
						<option value='10'>lycos.co.kr</option>
						<option value='11'>korea.com</option>
						<option value='12'>gmail.com</option>
						<option value='13'>hanmir.com</option>
						<option value='14'>paran.com</option>
				</select>
			</td>
		</tr>
		<tr>
			<th align="left" nowrap>성별</th>
			<td align="left" nowrap colspan="3">
				<c:choose>
					<c:when test="${login_info.gender eq 'M' }">
						<c:out value="남자"/>
					</c:when>
					<c:when test="${login_info.gender eq 'F' }">
						<c:out value="여자"/>
					</c:when>
				</c:choose>
			</td>
		</tr>
		<tr>
			<th align="left" nowrap>이메일수신여부</th>
			<td colspan="3" align="left" nowrap>
				<input type="radio" name="email_flag" value="Y" checked="checked">수신동의
				<input type="radio" name="email_flag" value="N">수신하지 않음
			</td>
		</tr>
		<tr >
			<th align="left" nowrap>전화번호</th>
			<td colspan="3" align="left" nowrap><select name="tel_no01"><option value="${login_info.tel_no01 }">${login_info.tel_no01 }</option>
						<option value='000'>전국번호</option>
							<option value='02'>02</option>
							<option value='031'>031</option>
							<option value='032'>032</option>
							<option value='033'>033</option>
							<option value='041'>041</option>
							<option value='042'>042</option>
							<option value='043'>043</option>
							<option value='051'>051</option>
							<option value='052'>052</option>
							<option value='053'>053</option>
							<option value='054'>054</option>
							<option value='055'>055</option>
							<option value='061'>061</option>
							<option value='062'>062</option>
							<option value='063'>063</option>
							<option value='064'>064</option>
							<option value='010'>010</option>
							<option value='011'>011</option>
							<option value='016'>016</option>
							<option value='017'>017</option>
							<option value='018'>018</option>
							<option value='019'>019</option>
							<option value='0130'>0130</option>
							<option value='080'>080</option>
							<option value='070'>070</option>
							<option value='0502'>0502</option>
							<option value='0507'>0507</option>
							<option value='0504'>0504</option>
							<option value='0503'>0503</option>
							<option value='0506'>0506</option>
							<option value='0505'>0505</option>
							<option value='0303'>0303</option>
			</select>
				-<input type="text" name="tel_no02" maxlength="4" size="4" value="${login_info.tel_no02 }"> 
				-<input type="text" name="tel_no03" maxlength="4" size="4" value="${login_info.tel_no03 }">
			</td>
		</tr>
		<tr>
			<th align="left" nowrap>휴대폰번호</th>
			<td colspan="3" align="left" nowrap>통신사선택
				<c:choose>
					<c:when test="${login_info.press_association eq 'SKT'}">
						<input type="radio" name="press_association" value="SKT" checked="checked">SKT
						<input type="radio" name="press_association" value="KTF" >KTF
						<input type="radio" name="press_association" value="LGT" >LGT
					</c:when>
					<c:when test="${login_info.press_association eq 'KTF'}">
						<input type="radio" name="press_association" value="SKT" >SKT
						<input type="radio" name="press_association" value="KTF" checked="checked">KTF
						<input type="radio" name="press_association" value="LGT" >LGT
					</c:when>
					<c:when test="${login_info.press_association eq 'LGT'}">
						<input type="radio" name="press_association" value="SKT" >SKT
						<input type="radio" name="press_association" value="KTF" >KTF
						<input type="radio" name="press_association" value="LGT" checked="checked">LGT
					</c:when>
				</c:choose>
				&nbsp;&nbsp;
				<select  name="phone_no01" >
					<option value="${login_info.phone_no01 }">${login_info.phone_no01 }</option>
						<option value='010'>010</option>
						<option value='011'>011</option>
						<option value='016'>016</option>
						<option value='017'>017</option>
						<option value='018'>018</option>
						<option value='019'>019</option>
						<option value='0130'>0130</option>
				</select>
				-<input type="text" name="phone_no02" maxlength="4" size="6" value="${login_info.phone_no02 }">
				-<input type="text" name="phone_no03" maxlength="4" size="7" value="${login_info.phone_no03 }">
			</td>
		</tr>
		<tr>
			<th nowrap>주소</th>
			<td colspan="3" align="left" nowrap>
				<input type="text" name="zipcode1" size="3" value="${login_info.zipcode1 }">
				-<input type="text" name="zipcode2" size="3" value="${login_info.zipcode2 }">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" value="우편번호 찾기" onclick="searchAddress()"><br>
				<input type="text" name="address" size="40" value="${login_info.address }">&nbsp;
				<input type="text" name="address_detail" value="${login_info.address_detail }" onfocus="javascript:document.form1.address_detail.value='';" >
			</td>
		</tr>
		<tr>
			<th align="left" nowrap>사진업로드</th>
			<td align="left" nowrap colspan="3">
			<c:choose>
				<c:when test="${empty login_info.picture_name}">
					<input type="file" name="upfile">
				</c:when>
				<c:otherwise>
						<a href="mempictureDelete.do">사진 삭제</a>
				</c:otherwise>
			</c:choose>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="right">
				<input type="submit" value="등 록">
				<input type="reset" value="등록 취소">
			</td>
		</tr>
	</table>
</center>
</form>

</body>
</html>